package com.yyds.blackmagic.mapper;

import com.yyds.blackmagic.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName BookMapper
 * @Auther Dell
 * @Date 2021/12/13 16:32
 **/

@Mapper
public interface BookMapper {
    List<Book> selectAll();
    Book search(int id);
    List<Book> selectOne(int cid);
    List<Book> selectBydate();
    List<Book> select(String title);
    int add(Book book);
    int delete(int id);
    int update(Book  book);



}
